@(boards: List[is.ru.honn.rupin.domain.Board], user: String, username: String, admin : Boolean)

@main(Html("Profile"), nav = "profile") {
@if(admin){
<h2 xmlns="http://www.w3.org/1999/html">Welcome to your profile @user</h2>
}else{
<h2><button class="btn" href="@routes.UserController.follow(username)">Follow this user</button>@user</h2>
}
<h3>Boards</h3>

    @for(board <- boards){
    <div class="span3">
        <p>Board name: <a href="@routes.BoardController.getBoard(username, board.getName)">@board.getName</a></p>

        <p></p>Category: @board.getCategory</p>
    </div>

}
}